package org.boyan.modules.cgform.model;

/**
 * @author: zhuxiaobao
 * @time: 2021/9/26 12:00
 */

import java.util.List;
import org.boyan.common.system.vo.SysPermissionDataRuleModel;
import org.boyan.modules.cgform.entity.OnlCgformField;

public class c {
    private String a;

    private String b;

    private List<OnlCgformField> c;

    private List<OnlCgformField> d;

    private List<SysPermissionDataRuleModel> e;

    private String f;

    private String g;

    private String h;

    private boolean i;

    public void setTableName(String tableName) {
        this.a = tableName;
    }

    public void setTableId(String tableId) {
        this.b = tableId;
    }

    public void setAllFieldList(List<OnlCgformField> allFieldList) {
        this.c = allFieldList;
    }

    public void setSelectFieldList(List<OnlCgformField> selectFieldList) {
        this.d = selectFieldList;
    }

    public void setAuthList(List<SysPermissionDataRuleModel> authList) {
        this.e = authList;
    }

    public void setMainField(String mainField) {
        this.f = mainField;
    }

    public void setJoinField(String joinField) {
        this.g = joinField;
    }

    public void setAlias(String alias) {
        this.h = alias;
    }

    public void setMain(boolean isMain) {
        this.i = isMain;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof c))
            return false;
        c c1 = (c)o;
        if (!c1.a(this))
            return false;
        if (a() != c1.a())
            return false;
        String str1 = getTableName(), str2 = c1.getTableName();
        if ((str1 == null) ? (str2 != null) : !str1.equals(str2))
            return false;
        String str3 = getTableId(), str4 = c1.getTableId();
        if ((str3 == null) ? (str4 != null) : !str3.equals(str4))
            return false;
        List<OnlCgformField> list1 = getAllFieldList(), list2 = c1.getAllFieldList();
        if ((list1 == null) ? (list2 != null) : !list1.equals(list2))
            return false;
        List<OnlCgformField> list3 = getSelectFieldList(), list4 = c1.getSelectFieldList();
        if ((list3 == null) ? (list4 != null) : !list3.equals(list4))
            return false;
        List<SysPermissionDataRuleModel> list5 = getAuthList(), list6 = c1.getAuthList();
        if ((list5 == null) ? (list6 != null) : !list5.equals(list6))
            return false;
        String str5 = getMainField(), str6 = c1.getMainField();
        if ((str5 == null) ? (str6 != null) : !str5.equals(str6))
            return false;
        String str7 = getJoinField(), str8 = c1.getJoinField();
        if ((str7 == null) ? (str8 != null) : !str7.equals(str8))
            return false;
        String str9 = getAlias(), str10 = c1.getAlias();
        return !((str9 == null) ? (str10 != null) : !str9.equals(str10));
    }

    protected boolean a(Object paramObject) {
        return paramObject instanceof c;
    }

    @Override
    public int hashCode() {
        boolean var1 = true;
        byte var2 = 1;
        int var11 = var2 * 59 + (this.a() ? 79 : 97);
        String var3 = this.getTableName();
        var11 = var11 * 59 + (var3 == null ? 43 : var3.hashCode());
        String var4 = this.getTableId();
        var11 = var11 * 59 + (var4 == null ? 43 : var4.hashCode());
        List var5 = this.getAllFieldList();
        var11 = var11 * 59 + (var5 == null ? 43 : var5.hashCode());
        List var6 = this.getSelectFieldList();
        var11 = var11 * 59 + (var6 == null ? 43 : var6.hashCode());
        List var7 = this.getAuthList();
        var11 = var11 * 59 + (var7 == null ? 43 : var7.hashCode());
        String var8 = this.getMainField();
        var11 = var11 * 59 + (var8 == null ? 43 : var8.hashCode());
        String var9 = this.getJoinField();
        var11 = var11 * 59 + (var9 == null ? 43 : var9.hashCode());
        String var10 = this.getAlias();
        var11 = var11 * 59 + (var10 == null ? 43 : var10.hashCode());
        return var11;
    }

    @Override
    public String toString() {
        return "OnlTable(tableName=" + getTableName() + ", tableId=" + getTableId() + ", allFieldList=" + getAllFieldList() + ", selectFieldList=" + getSelectFieldList() + ", authList=" + getAuthList() + ", mainField=" + getMainField() + ", joinField=" + getJoinField() + ", alias=" + getAlias() + ", isMain=" + a() + ")";
    }

    public String getTableName() {
        return this.a;
    }

    public String getTableId() {
        return this.b;
    }

    public List<OnlCgformField> getAllFieldList() {
        return this.c;
    }

    public List<OnlCgformField> getSelectFieldList() {
        return this.d;
    }

    public List<SysPermissionDataRuleModel> getAuthList() {
        return this.e;
    }

    public String getMainField() {
        return this.f;
    }

    public String getJoinField() {
        return this.g;
    }

    public String getAlias() {
        return this.h;
    }

    public boolean a() {
        return this.i;
    }

    public void setAliasByIntValue(int index) {
        char c1 = (char)index;
        this.h = String.valueOf(c1);
    }

    public String getTableAlias() {
        return this.h + ".";
    }

    public c() {}

    public c(String paramString1, String paramString2, boolean paramBoolean) {
        this.a = paramString1;
        this.b = paramString2;
        this.i = paramBoolean;
    }
}
